from pathlib import Path

path = Path('10_chapter_10_test\programming.txt')
path.write_text("I love progtamming12.")